package com.gpframework.module.brand.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gpframework.common.core.domain.BasePlusEntity;
import com.gpframework.module.common.domain.CommonWxUser;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @ClassName BrandStoreUserRela
 * @Author gpframework
 * @Date 2022-04-11
 * @Version 1.0.0
 * @Description 门店用户关联 PO对象
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("brand_store_user_rela")
public class BrandStoreUserRela extends BasePlusEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long storeUserRelaId;
    /**
     * 品牌id
     */
    private Long brandId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 店铺id
     */
    private Long storeId;

    /**
     * 雇员等级id
     */
    private Long levelSettingId;

//    /**
//     * 部门id
//     */
//    private Long brandDeptId;

    /**
     * 雇员等级
     */
    private String employeesLevel;

    /**
     * 排序
     */
    private Long sort;

    /**
     * 备注
     */
    private String remarks;

    public BrandStoreUserRela(CommonWxUser commonWxUser) {
        brandId = commonWxUser.getBrandId();
        userId = commonWxUser.getWxUserId();
        storeId = commonWxUser.getStoreId();
    }
}
